﻿using Toolkit.AudioExtend;
using UnityEngine.EventSystems;
using UnityEngine.UI;

namespace Toolkit.UI
{
    public class SelfToggle : Toggle
    {
        public override void OnPointerClick(PointerEventData eventData)
        {
            base.OnPointerClick(eventData);
            if (interactable)
                AudioManager.Singleton.SoundEffectPlayer.PlayClick();
        }
    }
}